package com.genius.reservation.driver.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.genius.reservation.car.entity.CarInformation;
import com.genius.reservation.optionTime.entity.optionTimeInformation;
import com.genius.reservation.user.entity.UserInformation;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 司机信息表
 * </p>
 *
 * @author baomidou
 * @since 2022-05-26
 */
@TableName("driver_information")
@ApiModel(value = "DriverInformation对象", description = "司机信息表")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DriverInformation  implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("司机编号")
    private String driverNumber;

    @ApiModelProperty("司机姓名")
    private String driverName;

    @ApiModelProperty("性别")
    private String driverSex;

    @ApiModelProperty("行程卡 健康码 核酸证明")
    private String driverPlagueCodeNumber;

    @ApiModelProperty("车辆代码")
    private String carNumber;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private String createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateTime;

    @TableField(value = "user_number")
    private String userNumber;

    @TableField(value = "supplier_number")
    private String supplierNumber;

    @TableField(value = "is_use")
    private Integer isUse;

    @TableField(exist = false)
    private CarInformation car;

    @TableField(exist = false)
    private DriverOptionTime driverOptionTime;

    @TableField(exist = false)
    private optionTimeInformation optionTimeInformation;

}
